package com.astrocsr.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;

public class BaseHelperDAO {
	
	@Autowired
	private SessionFactory sessionFactory;
	private HibernateTemplate hibernateTemplate;
	
	public Session getCurrentSession () {
		return this.sessionFactory.getCurrentSession();
	}
	
	public HibernateTemplate getHibernateTemplate() {
        return hibernateTemplate;
    }
}
